<@html>
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.ValidationTextBox");
</script>
<form id="updateForm" method="post" dojoType="dijit.form.Form">
<input type="hidden" id="version" name="platform.version"
       value="${(platform.version)!}"/>
<input type="hidden" id="platform" name="platform.id"
       value="${(platform.id)!}"/>
<table>
<tr>
	<td>
	<@s.text name="plateformCode"/>：
	</td>
	<td>
		<input id="plateformCode" name="platform.plateformCode" dojoType="dijit.form.ValidationTextBox"
		       required="true" value="${(platform.plateformCode)!}"/>
	</td>
	<td>
	<@s.text name="secType"/>：
	</td>
	<td>
		<input id="secType" name="platform.secType" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(platform.secType)!}"/>
	</td>
	<td>
	<@s.text name="beginTime1"/>：
	</td>
	<td>
		<input id="beginTime1" name="platform.beginTime1" dojoType="dijit.form.DateTextBox" required="true"
		       value="${getDate(platform.beginTime1)}" value="${(platform.beginTime1)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="endTime1"/>：
	</td>
	<td>
		<input id="endTime1" name="platform.endTime1" dojoType="dijit.form.DateTextBox" required="true"
		       value="${getDate(platform.endTime1)}" value="${(platform.endTime1)!}"/>
	</td>
	<td>
	<@s.text name="beginTime2"/>：
	</td>
	<td>
		<input id="beginTime2" name="platform.beginTime2" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.beginTime2)}" value="${(platform.beginTime2)!}"/>
	</td>
	<td>
	<@s.text name="endTime2"/>：
	</td>
	<td>
		<input id="endTime2" name="platform.endTime2" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.endTime2)}" value="${(platform.endTime2)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="plateType"/>：
	</td>
	<td>
		<input id="plateType" name="platform.plateType" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(platform.plateType)!}"/>
	</td>
	<td>
	<@s.text name="isOutplat"/>：
	</td>
	<td>
		<input id="isOutplat" name="platform.isOutplat" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.isOutplat)!}"/>
	</td>
	<td>
	<@s.text name="udf1"/>：
	</td>
	<td>
		<input id="udf1" name="platform.udf1" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf1)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf2"/>：
	</td>
	<td>
		<input id="udf2" name="platform.udf2" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf2)!}"/>
	</td>
	<td>
	<@s.text name="udf3"/>：
	</td>
	<td>
		<input id="udf3" name="platform.udf3" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf3)!}"/>
	</td>
	<td>
	<@s.text name="udf4"/>：
	</td>
	<td>
		<input id="udf4" name="platform.udf4" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf4)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf5"/>：
	</td>
	<td>
		<input id="udf5" name="platform.udf5" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf5)!}"/>
	</td>
	<td>
	<@s.text name="udf6"/>：
	</td>
	<td>
		<input id="udf6" name="platform.udf6" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf6)!}"/>
	</td>
	<td>
	<@s.text name="udf7"/>：
	</td>
	<td>
		<input id="udf7" name="platform.udf7" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf7)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf8"/>：
	</td>
	<td>
		<input id="udf8" name="platform.udf8" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf8)!}"/>
	</td>
	<td>
	<@s.text name="udf9"/>：
	</td>
	<td>
		<input id="udf9" name="platform.udf9" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf9)!}"/>
	</td>
	<td>
	<@s.text name="udf10"/>：
	</td>
	<td>
		<input id="udf10" name="platform.udf10" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf10)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf11"/>：
	</td>
	<td>
		<input id="udf11" name="platform.udf11" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf11)!}"/>
	</td>
	<td>
	<@s.text name="udf12"/>：
	</td>
	<td>
		<input id="udf12" name="platform.udf12" dojoType="dijit.form.ValidationTextBox"
		       value="${(platform.udf12)!}"/>
	</td>
	<td>
	<@s.text name="udf13"/>：
	</td>
	<td>
		<input id="udf13" name="platform.udf13" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf13)}" value="${(platform.udf13)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf14"/>：
	</td>
	<td>
		<input id="udf14" name="platform.udf14" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf14)}" value="${(platform.udf14)!}"/>
	</td>
	<td>
	<@s.text name="udf15"/>：
	</td>
	<td>
		<input id="udf15" name="platform.udf15" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf15)}" value="${(platform.udf15)!}"/>
	</td>
	<td>
	<@s.text name="udf16"/>：
	</td>
	<td>
		<input id="udf16" name="platform.udf16" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf16)}" value="${(platform.udf16)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf17"/>：
	</td>
	<td>
		<input id="udf17" name="platform.udf17" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf17)}" value="${(platform.udf17)!}"/>
	</td>
	<td>
	<@s.text name="udf18"/>：
	</td>
	<td>
		<input id="udf18" name="platform.udf18" dojoType="dijit.form.DateTextBox"
		       value="${getDate(platform.udf18)}" value="${(platform.udf18)!}"/>
	</td>
</tr>
</table>
<div dojoType="dijit.layout.TabContainer" style="width:100%;height:300px;">
</div>
<@listButton/>
</form>
</@html>
<script language="javascript" type="text/javascript">
	dojo.ready(function() {
		//事件注册
		//保存
		dojo.connect(dijit.byId("btnSave"), "onClick", function() {
			//增加列表参数
			var param = dojo.formToObject("updateForm");
			if (dijit.byId("updateForm").validate()) {
				dojo.xhrPost({
							url : "${(path)!}/master/platform.update.do",
							content : param,
							handleAs : "json",
							load : function(json) {
								handleJsonMessage({
											message:json,
											callback:function() {
												parent.publish("platform/refresh");
												parent.closeDialog();
											}
										})
							}
						});
			}
		});
	})
</script>
